package com.dly.blog.utile;

import java.io.File;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/19 10:25
 */
public class FileUtils {

    /**
     * 删除文件
     * @param file
     */
    public static void delete(File file) {
        try {

            if (null != file && file.exists()) {
                file.delete();
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
